package com.hd.appcommon.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hd.appcommon.entity.Role;

import java.util.List;

/**
 * <p>
 * 角色 服务类
 * </p>
 *
 * @author administrator
 * @since 2020-11-30
 */
public interface IRoleService extends IService<Role> {

    List<Role> listByOrgMemberId(String teacherId);

    Role getUnique(String roleName);

    boolean save(Role role, List<String> privilegeIds);

    boolean edit(Role role, List<String> privilegeIds);

    boolean editMember(String roleId, String[] memberIds);
}
